home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 0a | 50 61 74 68 3a 20 6c 68 |.lang.c.|Path: lh|
|00000020| 6f 70 69 74 61 6c 2e 75 | 77 61 74 65 72 6c 6f 6f |opital.u|waterloo|
|00000030| 2e 63 61 21 6a 79 65 74 | 73 65 0a 46 72 6f 6d 3a |.ca!jyet|se.From:|
|00000040| 20 53 70 69 64 65 72 20 | 53 74 69 6e 67 21 21 20 | Spider |Sting!! |
|00000050| 3c 6a 79 65 74 73 65 40 | 75 6e 64 65 72 67 72 61 |<jyetse@|undergra|
|00000060| 64 2e 6d 61 74 68 2e 75 | 77 61 74 65 72 6c 6f 6f |d.math.u|waterloo|
|00000070| 2e 63 61 3e 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |.ca>.Sub|ject: Re|
|00000080| 3a 20 50 72 6f 62 6c 65 | 6d 20 77 69 74 68 20 61 |: Proble|m with a|
|00000090| 20 66 6f 72 20 6c 6f 6f | 70 20 0a 53 65 6e 64 65 | for loo|p .Sende|
|000000a0| 72 3a 20 6e 65 77 73 40 | 75 6e 64 65 72 67 72 61 |r: news@|undergra|
|000000b0| 64 2e 6d 61 74 68 2e 75 | 77 61 74 65 72 6c 6f 6f |d.math.u|waterloo|
|000000c0| 2e 63 61 20 28 6e 65 77 | 73 20 73 70 6f 6f 6c 20 |.ca (new|s spool |
|000000d0| 6f 77 6e 65 72 29 0a 4d | 65 73 73 61 67 65 2d 49 |owner).M|essage-I|
|000000e0| 44 3a 20 3c 50 69 6e 65 | 2e 53 55 4e 2e 33 2e 39 |D: <Pine|.SUN.3.9|
|000000f0| 31 2e 39 36 30 33 30 33 | 30 33 34 37 34 34 2e 37 |1.960303|034744.7|
|00000100| 33 35 39 41 2d 31 30 30 | 30 30 30 40 6c 68 6f 70 |359A-100|000@lhop|
|00000110| 69 74 61 6c 2e 75 77 61 | 74 65 72 6c 6f 6f 2e 63 |ital.uwa|terloo.c|
|00000120| 61 3e 0a 58 2d 53 65 6e | 64 65 72 3a 20 6a 79 65 |a>.X-Sen|der: jye|
|00000130| 74 73 65 40 6c 68 6f 70 | 69 74 61 6c 2e 75 77 61 |tse@lhop|ital.uwa|
|00000140| 74 65 72 6c 6f 6f 2e 63 | 61 0a 49 6e 2d 52 65 70 |terloo.c|a.In-Rep|
|00000150| 6c 79 2d 54 6f 3a 20 3c | 34 68 38 67 30 6c 24 31 |ly-To: <|4h8g0l$1|
|00000160| 6f 74 40 6e 69 63 2e 75 | 6d 61 73 73 2e 65 64 75 |ot@nic.u|mass.edu|
|00000170| 3e 20 0a 44 61 74 65 3a | 20 53 75 6e 2c 20 33 20 |> .Date:| Sun, 3 |
|00000180| 4d 61 72 20 31 39 39 36 | 20 30 38 3a 34 39 3a 34 |Mar 1996| 08:49:4|
|00000190| 36 20 47 4d 54 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |6 GMT.Co|ntent-Ty|
|000001a0| 70 65 3a 20 54 45 58 54 | 2f 50 4c 41 49 4e 3b 20 |pe: TEXT|/PLAIN; |
|000001b0| 63 68 61 72 73 65 74 3d | 55 53 2d 41 53 43 49 49 |charset=|US-ASCII|
|000001c0| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 34 68 |.Referen|ces: <4h|
|000001d0| 38 67 30 6c 24 31 6f 74 | 40 6e 69 63 2e 75 6d 61 |8g0l$1ot|@nic.uma|
|000001e0| 73 73 2e 65 64 75 3e 20 | 0a 4e 6e 74 70 2d 50 6f |ss.edu> |.Nntp-Po|
|000001f0| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 6c 68 6f 70 |sting-Ho|st: lhop|
|00000200| 69 74 61 6c 2e 75 77 61 | 74 65 72 6c 6f 6f 2e 63 |ital.uwa|terloo.c|
|00000210| 61 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |a.Mime-V|ersion: |
|00000220| 31 2e 30 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |1.0.Orga|nization|
|00000230| 3a 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |: Univer|sity of |
|00000240| 57 61 74 65 72 6c 6f 6f | 0a 0a 4f 6e 20 32 20 4d |Waterloo|..On 2 M|
|00000250| 61 72 20 31 39 39 36 2c | 20 4b 65 76 69 6e 20 4d |ar 1996,| Kevin M|
|00000260| 20 53 65 78 74 6f 6e 20 | 77 72 6f 74 65 3a 0a 0a | Sexton |wrote:..|
|00000270| 3e 20 49 20 77 61 73 20 | 64 6f 69 6e 67 20 61 20 |> I was |doing a |
|00000280| 70 72 6f 6a 65 63 74 20 | 66 6f 72 20 6f 6e 65 20 |project |for one |
|00000290| 6f 66 20 6d 79 20 63 6c | 61 73 73 65 73 20 61 6e |of my cl|asses an|
|000002a0| 64 20 49 20 63 61 6d 65 | 20 61 63 72 6f 73 73 20 |d I came| across |
|000002b0| 61 20 72 61 74 68 65 72 | 20 0a 3e 20 6f 64 64 20 |a rather| .> odd |
|000002c0| 62 75 67 20 69 6e 20 70 | 61 72 74 20 6f 66 20 74 |bug in p|art of t|
|000002d0| 68 65 20 63 6f 64 65 2e | 20 20 49 20 69 6e 69 74 |he code.| I init|
|000002e0| 69 61 6c 6c 79 20 68 61 | 64 20 74 68 65 20 66 6f |ially ha|d the fo|
|000002f0| 6c 6c 6f 77 69 6e 67 3a | 0a 3e 20 66 6f 72 20 28 |llowing:|.> for (|
|00000300| 20 69 20 3d 20 30 3b 20 | 57 4c 5b 69 5d 20 21 3d | i = 0; |WL[i] !=|
|00000310| 20 4e 55 4c 4c 2c 20 69 | 20 3c 3d 20 31 30 3b 20 | NULL, i| <= 10; |
|00000320| 69 2b 2b 20 29 0a 3e 20 | 7b 0a 3e 20 09 41 41 4c |i++ ).> |{.> .AAL|
|00000330| 5b 69 5d 20 3d 20 6e 65 | 77 20 63 68 61 72 5b 73 |[i] = ne|w char[s|
|00000340| 74 72 6c 65 6e 28 57 4c | 5b 69 5d 29 2b 31 29 3b |trlen(WL|[i])+1);|
|00000350| 0a 3e 20 09 73 74 72 63 | 70 79 28 41 41 4c 5b 69 |.> .strc|py(AAL[i|
|00000360| 5d 2c 20 57 4c 5b 69 5d | 29 3b 0a 3e 20 7d 0a 3e |], WL[i]|);.> }.>|
|00000370| 20 0a 3e 20 49 20 72 65 | 61 6c 69 7a 65 20 74 68 | .> I re|alize th|
|00000380| 61 74 20 6e 65 77 20 62 | 65 6c 6f 6e 67 73 20 74 |at new b|elongs t|
|00000390| 6f 20 43 2b 2b 2c 20 62 | 75 74 20 74 68 61 74 27 |o C++, b|ut that'|
|000003a0| 73 20 6e 6f 74 20 77 68 | 65 72 65 20 74 68 65 20 |s not wh|ere the |
|000003b0| 63 6f 6e 66 75 73 69 6f | 6e 20 0a 3e 20 6c 69 65 |confusio|n .> lie|
|000003c0| 73 2e 20 20 57 4c 20 69 | 73 20 61 6e 20 61 72 72 |s. WL i|s an arr|
|000003d0| 61 79 20 6f 66 20 70 6f | 69 6e 74 65 72 73 20 74 |ay of po|inters t|
|000003e0| 6f 20 73 74 72 69 6e 67 | 73 2e 20 20 57 4c 5b 30 |o string|s. WL[0|
|000003f0| 5d 3d 22 2e 2f 6d 79 5f | 6d 61 63 72 6f 22 20 61 |]="./my_|macro" a|
|00000400| 6e 64 0a 3e 20 57 4c 5b | 31 5d 3d 4e 55 4c 4c 2e |nd.> WL[|1]=NULL.|
|00000410| 20 20 48 6f 77 65 76 65 | 72 2c 20 74 68 65 20 66 | Howeve|r, the f|
|00000420| 6f 72 20 6c 6f 6f 70 20 | 69 6e 73 69 73 74 73 20 |or loop |insists |
|00000430| 6f 6e 20 63 6f 6e 74 69 | 6e 75 69 6e 67 20 74 68 |on conti|nuing th|
|00000440| 65 20 6c 6f 6f 70 20 65 | 76 65 6e 20 0a 3e 20 77 |e loop e|ven .> w|
|00000450| 68 65 6e 20 69 3d 31 20 | 61 6e 64 20 57 4c 5b 69 |hen i=1 |and WL[i|
|00000460| 5d 3d 4e 55 4c 4c 2e 20 | 20 41 6d 20 49 20 6d 69 |]=NULL. | Am I mi|
|00000470| 73 73 69 6e 67 20 73 6f | 6d 65 74 68 69 6e 67 3f |ssing so|mething?|
|00000480| 20 20 49 20 63 61 6e 27 | 74 20 73 65 65 20 77 68 | I can'|t see wh|
|00000490| 61 74 20 69 73 20 0a 3e | 20 77 72 6f 6e 67 20 6c |at is .>| wrong l|
|000004a0| 6f 67 69 63 61 6c 6c 79 | 2e 20 20 41 6e 79 20 61 |ogically|. Any a|
|000004b0| 73 73 69 73 74 61 6e 63 | 65 20 77 6f 75 6c 64 20 |ssistanc|e would |
|000004c0| 62 65 20 6d 75 63 68 20 | 61 70 70 72 65 63 69 61 |be much |apprecia|
|000004d0| 74 65 64 2e 20 20 54 68 | 61 6e 78 20 69 6e 20 0a |ted. Th|anx in .|
|000004e0| 3e 20 61 64 76 61 6e 63 | 65 2e 0a 0a 20 20 59 6f |> advanc|e... Yo|
|000004f0| 75 20 73 68 6f 75 6c 64 | 20 68 61 76 65 20 75 73 |u should| have us|
|00000500| 65 64 20 22 26 26 22 20 | 69 6e 73 74 65 61 64 20 |ed "&&" |instead |
|00000510| 6f 66 20 74 68 65 20 63 | 6f 6d 6d 61 20 6f 70 65 |of the c|omma ope|
|00000520| 72 61 74 6f 72 20 61 74 | 20 74 68 65 20 22 66 6f |rator at| the "fo|
|00000530| 72 22 0a 6c 6f 6f 70 2e | 20 0a 20 20 54 68 65 20 |r".loop.| . The |
|00000540| 65 78 70 72 65 73 73 69 | 6f 6e 0a 0a 20 20 57 4c |expressi|on.. WL|
|00000550| 5b 69 5d 20 21 3d 20 4e | 55 4c 4c 2c 20 69 20 3c |[i] != N|ULL, i <|
|00000560| 3d 20 31 30 0a 0a 20 20 | 72 65 74 75 72 6e 73 0a |= 10.. |returns.|
|00000570| 0a 20 20 69 20 3c 3d 20 | 31 30 0a 0a 20 20 77 68 |. i <= |10.. wh|
|00000580| 69 63 68 20 69 73 20 77 | 68 79 20 74 68 65 20 22 |ich is w|hy the "|
|00000590| 66 6f 72 22 20 6c 6f 6f | 70 20 65 78 65 63 75 74 |for" loo|p execut|
|000005a0| 65 73 20 31 31 20 74 69 | 6d 65 73 2e 0a 0a 45 72 |es 11 ti|mes...Er|
|000005b0| 69 63 0a | |ic. | |
+--------+-------------------------+-------------------------+--------+--------+